from PIL import Image, ImageDraw, ImagePath
import os

# Create a new image
image = Image.new('RGB', (400, 400), 'white')
draw = ImageDraw.Draw(image)

# Define the control points of the cubic Bezier curve
points = [(50, 200), (150, 100), (250, 300), (350, 200)]

# Create a path for the Bezier curve
path = ImagePath.Path(points)

# Draw the Bezier curve on the image
draw.path(path, fill='none', outline='black')

# Display the image
image.show()

